<%--
    Author: scm
    Date: 2023-12-12
    Version: 1.0
--%>
<%--
    需要的数据
    clubAdministratorCount，本系统中，社团管理员总数，下面几个类似
    userCount
    clubCount
    activityCount
    now 当前时间
--%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page session="true" %>
<%@ page contentType="text/html; charset=UTF-8" %>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/bootstrap.css">
  <link rel="stylesheet" href="<c:url value="/resources/css/systemStyle.css"/>">
  <title>校园社团管理系统</title>
</head>
<body>
  <!-- 顶部导航栏 -->
  <jsp:include page="./header.jsp" />
  <div class="content container">
    <div class="card shadow p-3 mb-5 bg-body-tertiary rounded">
      <div class="card-header fs-4 fw-semibold">
        数据统计
      </div>
      <div class="card-body">
        <p class="card-text">截止<span class="fs-4 fst-italic text-success"><fmt:formatDate value="${now}" pattern="yyyy/MM/dd HH:mm:ss" /></span>,本系统</p>
        <p class="card-text">用户<a class="fst-italic text-success fs-4 text-decoration-none" href="<c:url value="../systemAdministrator/users"/>">${userCount}</a>名</p>
        <p class="card-text">社团管理员<a class="fst-italic text-success fs-4 text-decoration-none">${clubAdministratorCount}</a>名</p>
        <p class="card-text">社团<a class="fst-italic text-success fs-4 text-decoration-none" href="<c:url value="../systemAdministrator/clubs"/>">${clubCount}</a>个</p>
        <p class="card-text">社团活动<a class="fst-italic text-success fs-4 text-decoration-none" href="<c:url value="../systemAdministrator/activities"/>">${activityCount}</a>场</p>
      </div>
    </div>
    <div style="height: 10rem"></div>
  <!-- footer -->
  <jsp:include page="./footer.jsp" />
  <script src="<c:url value="/resources/js/bootstrap.bundle.js" />"></script>
</body>
</html>